//
//  DateTimeFormat.h
//  MISCloud
//
//  Created by goldeney on 13-10-15.
//  Copyright (c) 2013年 goldeneye. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface DateTimeFormat : NSObject

#pragma mark 返回当前时间，格式20131009000000
+ (NSString*)getNowTime;
+ (NSString*)getNowTimeMillisecond;
+ (NSString*)getNowTimeTypeString:(NSString*)typeString;
+ (NSString*)getNowDateFormatter:(NSString*)formatter;//制定输出格式

#pragma mark 返回时间格式 20131009000000
+ (NSString*) setNewTimeType:(NSString*)oldTimeTring;
+ (NSString*) setYearsType:(NSString*)oldTimeTring;

#pragma mark 返回时间格式 2013-10-09 00:00:00
+ (NSString*) setNormTimeType:(NSString*)oldTimeTring;
+ (NSString*) setNormYearsType:(NSString*)oldTimeTring;

#pragma mark 计算某个时间点与现在的时间差
+ (NSString *)intervalSinceNow: (NSString *) theDate;

#pragma mark 比较两个日期的大小
+ (int)compareOneDay:(NSDate *)oneDay withAnotherDay:(NSDate *)anotherDay;

@end
